Skip to content

fix: show course instructor properly#91

Merged
condyl merged 1 commit intomasterfrom
cb/fix-course-instructor-list
Mar 16, 2026
Merged

fix: show course instructor properly#91
condyl merged 1 commit intomasterfrom
cb/fix-course-instructor-list

Conversation

@condyl
Copy link
Copy Markdown
Collaborator

@condyl condyl commented Mar 16, 2026

This pull request refactors the logic for building course details from calendar events to improve code reuse and maintainability. The main change is the extraction of course details aggregation into a new utility function, which is now used in both the calendar component and its associated hook. Additionally, there are minor improvements to how course instructor information is displayed.

Refactoring and code reuse:

  • Extracted the logic for building course details from calendar events into a new utility function buildCourseDetails in src/lib/generator/buildCourseDetails.js, including helper functions for parsing and merging course details.
  • Updated CalendarComponent.jsx and useCalendarEvents.js to use the new buildCourseDetails function instead of duplicating the course details aggregation logic.

Minor improvements:

  • Improved the display of the course instructor in CourseListItemComponent.jsx by using optional chaining and a fallback value.

@condyl condyl merged commit 94d08ce into master Mar 16, 2026
3 checks passed
@condyl condyl deleted the cb/fix-course-instructor-list branch March 16, 2026 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant